﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PokemonBattle.BattleRoom.Server
{
    public interface IRoomServerService
    {

        void OnAcceptChallenge(int sessionID, int targetIdentity);

        void OnRefuseChallenge(int sessionID, int targetIdentity);

        void OnChallenge(int sessionID, int targetIdentity, ChallengeInfo info);

        void OnCancelChallenge(int sessionID, int targetIdentity);

        void OnStartBattle(int sessionID, int with, ChallengeInfo info);

        void OnStartFourPlayerBattle(int sessionID, int battleIdentity, byte position);

        void OnGetObserveInfo(int sessionID, int identity);

        void OnUserLogon(int sessionID, User info);

        void OnUserLogout(int sessionID);

        void OnUpdateUser(int sessionID, User info);

        void OnReceiveBroadcastMessage(int sessionID, string message);

        void OnReceiveChatMessage(int sessionID, int to, string message);

        void OnReceiveRoomCommand(int sessionID, string message);

        void OnRegistFourPlayer(int sessionID);

    }
}
